package com.leyou;

import com.leyou.comment.config.JwtProperties;
import com.leyou.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author 林琼杨
 * @version 1.0
 * @date 2020/5/29 11:42
 */
@EnableConfigurationProperties(JwtProperties.class)
@SpringBootApplication
@MapperScan("com.leyou.comment.mapper")
public class LyCommentsApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyCommentsApplication.class,args);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
